package Course8;

import java.lang.ref.SoftReference;

public class Cat {
    private String name;
    private  int age;
    private String sex;
    private String weight;

    public String getName() {return name; }

    public void setName(String name) { this.name = name; }

    public int getAge() { return age; }

    public void setAge(int age) { this.age = age; }

    public String getSex() { return sex; }

    public void setSex(String sex) { this.sex = sex; }

    public String getWeight() { return weight; }

    public void setWeight(String weight) { this.weight = weight; }


    public  Cat(){}

    public  Cat(String name,int age){
        System.out.println("小猫的名字是:"+ name);
        System.out.println("小猫的年龄是:"+ age);
    }
    public static void main(String[] args){
       Cat cat = new Cat("Java",1);

    }
}
